package com.tedu.openmedical.staff.service.impl;

import com.tedu.openmedical.staff.mapper.StaffMapper;
import com.tedu.openmedical.staff.pojo.po.StaffPO;
import com.tedu.openmedical.staff.service.StaffService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffServiceImpl implements StaffService {
    private final StaffMapper staffMapper;

    public StaffServiceImpl(StaffMapper staffMapper) {
        this.staffMapper = staffMapper;
    }

    @Override
    public List<StaffPO> select() {
        return staffMapper.selectList(null);
    }
}
